/* 设置表单和其他组件样式 */
.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 0.25rem;
}

.section-header p {
    color: var(--admin-text-light);
    font-size: 0.875rem;
}

.settings-form {
    background: var(--admin-card);
    border-radius: var(--admin-radius);
    padding: 1.5rem;
    box-shadow: var(--admin-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--admin-text);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    background: var(--admin-bg);
    color: var(--admin-text);
    font-size: 0.875rem;
    transition: all 0.2s var(--admin-transition);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--admin-primary) 20%, transparent);
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--admin-text-light);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--admin-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--admin-transition);
}

.btn i {
    font-size: 1.25rem;
}

.btn-primary {
    background: var(--admin-primary);
    color: white;
}

.btn-secondary {
    background: var(--admin-bg);
    color: var(--admin-text);
    border: 1px solid var(--admin-border);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* 历史记录 */
.history-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.history-list {
    background: var(--admin-card);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
    overflow: hidden;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    transition: all 0.2s var(--admin-transition);
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: color-mix(in srgb, var(--admin-primary) 5%, transparent);
}

.history-content {
    flex: 1;
    min-width: 0;
}

.history-message {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: var(--admin-text);
}

.history-time {
    font-size: 0.75rem;
    color: var(--admin-text-light);
}

.history-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.delete-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--admin-radius);
    background: color-mix(in srgb, var(--admin-danger) 10%, transparent);
    color: var(--admin-danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--admin-transition);
}

.delete-btn:hover {
    background: var(--admin-danger);
    color: white;
}

/* Toast提示 */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--admin-card);
    border-radius: var(--admin-radius);
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--admin-transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.toast-container.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.toast-message {
    color: var(--admin-text);
    font-size: 0.875rem;
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .history-toolbar {
        flex-direction: column;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .history-actions {
        align-self: flex-end;
    }

    .toast-container {
        width: 90%;
        max-width: 320px;
    }
}